package com.xcenter.cabinet.file.service;

import org.springframework.web.multipart.MultipartFile;

import com.xcenter.cabinet.model.FileModel;

public interface FileService {
	
	String ID = "fileService";
	
	/**
	 * 上传
	 * @param bucket
	 * @param files
	 */
	public void upload(String bucket, MultipartFile[] files);
	
	/**
	 * 根据ID查找文件
	 * @param id
	 * @return
	 */
	public FileModel queryById(Long id);

	public FileModel[] queryByIds(Long[] ids);
	
	/**
	 * 根据ID删除文件
	 */
	public void deleteById(Long id);
	
	public void deleteByIds(Long[] ids);
}
